<template>
	<view class="data-card">
			<view class="header">
						 <text style="color:#c4270b;" v-if="info.bloodOxygen < 94">| 异常血氧</text>
						 <text style="color:#48C454;" v-else>| 正常血氧</text>
						 <view style="width:18%;"></view>
						 <text style="color: #808080; margin-left: 10rpx; font-size: 24rpx;">{{info.testTime}}</text>
			</view>
				<view class="pressure">
				 <view class="vvv">
					 <text style="font-size: 24rpx;color: #c4270b;font-weight: bolder;"
					 v-if="info.bloodOxygen < 94">{{info.bloodOxygen}} %</text>
					 <text style="font-size: 24rpx;color: black;font-weight: bolder;"
					 v-else>{{info.bloodOxygen}} %</text>
						<text style="font-size:24rpx;color:#808080;">最低含氧量</text>
				 </view>
					 <view class="vertical-line"></view>
				 <view class="vvv">
					 <text style="font-size: 24rpx;rcolor: black;font-weight: bolder;">{{info.pulseRate}}</text>
				 <text style="font-size:24rpx;color:#808080;">最低脉率</text>
				 </view>
					 <view class="vertical-line"></view>
				 <view class="vvv">
					 <text style="font-size: 24rpx;color: black;font-weight: bolder;">{{info.perfusionIndex}}</text>
					 <text style="font-size:24rpx;color:#808080;">最低灌注指数</text>
				 </view>
			 </view>	 
	</view>
</template>

<script>
	export default {
		name:"oxygen-info",
		data() {
			return {
				info: {
					testTime:"2024年3月29日 10:18-10:20",
					bloodOxygen: 90, 
					pulseRate: 67, 
					perfusionIndex: 9.5 
				},
				bloodOxygenList: [],
				pulseRateList: [], 
				perfusionIndexList: [] 
			};
		}
	}
</script>

<style>
	.header {
		display: flex;
		flex-direction: row;
		align-items: center;
		width: 100%;
		position: relative;
	}
	
	.data-card {
		display: flex; 
		justify-content: center;
		align-items: center;
		flex-direction: column;
		width: 100%;
		background-color: #FFFFFF;
		border: 2rpx solid #B2EBF2; /* 浅蓝色边框 */
		box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1), 0 0 0 2rpx #B2EBF2; /* 添加浅蓝色边框阴影 */
		border-radius: 10rpx; /* 添加圆角 */
	}



 .pressure{
    display: flex;
	justify-content:center;
	width: 100%;
	flex-direction: row;
 /*   align-items: center; */
  }

  .vvv{
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  margin-top: 20rpx;
	  margin-bottom: 20rpx;
	  margin-right: 40rpx;
	  margin-left: 40rpx;
  }
  
  .vertical-line {
    height: 80rpx; /* 控制竖线的高度 */
    width: 2rpx; /* 控制竖线的宽度 */
    background-color: #CCCCCC;
    margin: 0 20rpx; 
  }
  .label {
    font-size: 12rpx;
    color: #808080; /* 灰色文本 */
  }
</style>